/*
 * @Author: rogi
 * @Date: 2022-07-18 15:47:08
 * @LastEditTime: 2022-10-09 15:33:18
 * @LastEditors: rogi
 * @Description: 描述
 */
import request from "../utils/request";

export function qbtProductList(params) {
  return request(`/jeecg-boot/qbt/qbtProduct/list`, {
    params
  })
}

export function queryFundProjectProduct(params) {
  return request(`/jeecg-boot/qbt/capitalProductRule/queryFundProjectProduct`, {
    params
  })
}

export function qbtFundInformationList(params) {
  return request(`/jeecg-boot/qbt/qbtFundInformation/list`, {
    params
  })
}

export function getListByFundInfomationIdList(params) {
  return request(`/jeecg-boot/qbt/fundProject/getListByFundInfomationId`, {
    params
  })
}

export function queryById(params) {
  return request(`/jeecg-boot/qbt/qbtFundInformation/queryById`, {
    params
  })
}

export function fundProjectQueryById(params) {
  return request(`/jeecg-boot/qbt/fundProject/queryById`, {
    params
  })
}

export function capitalProductRuleList(params) {
  return request(`/jeecg-boot/qbt/capitalProductRule/list`, {
    params
  })
}

export function getByProductTypeId(params) {
  return request(`/jeecg-boot/qbt/qbtProductTypeSubMapping/getByProductTypeId`, {
    params
  })
}

export function qbtCapitalProductAdmittanceRuleList(params) {
  return request(`/jeecg-boot/qbt/qbtCapitalProductAdmittanceRule/list`, {
    params
  })
}

export function qbtFundProjectAddMoneyLog(params) {
  return request(`/jeecg-boot/qbt/qbtFundProjectAddMoneyLog/getListByProjectId`, {
    params
  })
}

export function fundProjectAdd(body) {
  return request(`/jeecg-boot/qbt/fundProject/add`, {
    method: 'post',
    body
  })
}

export function qbtFundProjectAddMoneyLogAdd(body) {
  return request(`/jeecg-boot/qbt/qbtFundProjectAddMoneyLog/add`, {
    method: 'post',
    body
  })
}

export function qbtFundInformationDelete(params) {
  return request(`/jeecg-boot/qbt/qbtFundInformation/delete`, {
    method: 'delete',
    params
  })
}

export function fundProjectEdit(body) {
  return request(`/jeecg-boot/qbt/fundProject/edit`, {
    method: 'put',
    body
  })
}

export function qbtFundInformationAdd(body) {
  return request(`/jeecg-boot/qbt/qbtFundInformation/add`, {
    method: 'post',
    body
  })
}

export function qbtFundInformationEdit(body) {
  return request(`/jeecg-boot/qbt/qbtFundInformation/edit`, {
    method: 'put',
    body
  })
}

export function fundProjectDelete(params) {
  return request(`/jeecg-boot/qbt/fundProject/delete`, {
    method: 'delete',
    params
  })
}

export function capitalProductRuleDelete(params) {
  return request(`/jeecg-boot/qbt/capitalProductRule/delete`, {
    method: 'delete',
    params
  })
}

export function qbtProductDelete(params) {
  return request(`/jeecg-boot/qbt/qbtProduct/delete`, {
    method: 'delete',
    params
  })
}

export function qbtFundProjectAddMoneyLogDelete(params) {
  return request(`/jeecg-boot/qbt/qbtFundProjectAddMoneyLog/deleteById`, {
    method: 'delete',
    params
  })
}